from rest_framework.routers import DefaultRouter
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from apps.envs import views

route = DefaultRouter()
route.register('env', views.EnvViewSet)
route.register('params', views.EnvGlobalParamsSet)
route.register('service', views.ServiceViewSet)
route.register('env_service', views.EnvServiceViewSet)
route.register('plant', views.PlantViewSet)
route.register('env_plant', views.EnvPlantViewSet)
route.register('module', views.ModuleViewSet)
route.register('page', views.PageViewSet)
route.register('header', views.HeadersViewSet)

urlpatterns = [
    path('env/', include(route.urls), name='env'),
    path('env/allPlantModule/', views.get_all_plant_module, name='all_plant_module'),
    path('env/allModulePage/', views.get_all_plant_module_page, name='all_plant_module_page'),
    path('env/allPlantElement/', views.get_all_plant_element, name='all_plant_element'),

]
